home *** CD-ROM | disk | FTP | other *** search
- /*
- File: DebugFlag.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __DEBUGFLAG__
- #define __DEBUGFLAG__
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- class TDebugFlag
- {
- public:
- // Constructors:
- TDebugFlag(short resourceID, OSType resourceType = 'DBGF'); // read from given resource type and ID
-
- // Destructor
- ~TDebugFlag(); // deconstructor, does nothing
-
- // This returns the value of the flag-th flag
- Boolean Flag (short flag) const;
-
- // This sets the flag-th flag to the given value. It returns the previous value.
- Boolean SetFlag (short flag, Boolean newValue = true );
-
- // This clears the flag-th flag
- void ClearFlag ( short flag );
-
- // This clears all flags to 'off'
- void ClearAll(void);
-
- private:
- Handle fData;
- short fResFileNum;
- };
-
- #endif // __DEBUGFLAG__
-